<!DESCRIPTION>This script will put a check in the checkbox next to each textbox when it has been filled in correctly!<!/DESCRIPTION>
<!CATEGORY>Forms<!/CATEGORY>
<!SCRIPT>
<!-- START OF SCRIPT -->
<!-- HOW TO INSTALL CHECK FORM:
1. Copy code into the HEAD section of document
2. Put last coding into the BODY section of document -->
<!-- STEP ONE: Add code into HEAD section of document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Chris van Marle (C.A.vanMarle@inter.NL.net) -->
<!-- Web Site: http://www.chrisworld.org -->
<!-- Begin
FormName = "form" //Name of the form
CheckName = "check" //Name of the checkboxes (without 1,2,3...10,11,12...)
TextName = "text" //Name of the textfields (without 1,2,3...10,11,12...)
var Condition=new Array(
'a!=""', //Must be filled
'a!=""', //Must be filled
'a!=""&&a.length>5&&a.indexOf("@")!=-1&&a.indexOf(".")!=-1', //Must be longer than 5 characters, have @, and atleast one '.'
'a.length>7&&!(a.split("/")[0]*1>12)&&!(a.split("/")[1]*1>31)&&!(a.split("/")[2]*1<1900)' //Must be longer than 7 characters, first (two) digit(s) NOT greater than 12, second (two) digit(s) NOT greater than 31 and last 4 greater than 1900
2. Put last coding into the BODY section of document -->
<!-- STEP ONE: Add code into HEAD section of document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Chris van Marle (C.A.vanMarle@inter.NL.net) -->
<!-- Web Site: http://www.chrisworld.org -->
<!-- Begin
FormName = "form" //Name of the form
CheckName = "check" //Name of the checkboxes (without 1,2,3...10,11,12...)
TextName = "text" //Name of the textfields (without 1,2,3...10,11,12...)
var Condition=new Array(
'a!=""', //Must be filled
'a!=""', //Must be filled
'a!=""&&a.length>5&&a.indexOf("@")!=-1&&a.indexOf(".")!=-1', //Must be longer than 5 characters, have @, and atleast one '.'
'a.length>7&&!(a.split("/")[0]*1>12)&&!(a.split("/")[1]*1>31)&&!(a.split("/")[2]*1<1900)' //Must be longer than 7 characters, first (two) digit(s) NOT greater than 12, second (two) digit(s) NOT greater than 31 and last 4 greater than 1900